<?php
class Dashboard_model extends CI_Model
{
    public function __construct()
    {
        $this->load->database();
    }

    public function getAll()
    {
        $sql = "select * from v_dashboard";
        $query = $this->db->query($sql);
        return $query->row_array();
    }
}

?>